import { NEWS_LIST } from '../constants'
export default function news(
  state = {
    list: [],
  },
  action
) {
  switch (action.type) {
    case NEWS_LIST:
      return {
        ...state,
        list: action.payload,
      }
    default:
      return state
  }
}
